package org.goldenport.g3.sample

import org.goldenport.g3._
import org.goldenport.g3.messages.sql._

/**
 * @since   Jun.  9, 2010
 * @version Aug. 31, 2010
 * @author  ASAMI, Tomoharu
 **/
class SqlCreate extends G3Application {
  sqlspace('mydb)

  val sql = Create(
    SqlSpec.TABLE_NAME,
    DDL(
      Column('id, INTEGER, List(PRIMARY_KEY)),
      Column('name, VARCHAR(32))
    ))

  start(sql) invoke("mydb")
}
